<!--
 * @Author: your name
 * @Date: 2020-12-29 17:16:32
 * @LastEditTime: 2020-12-29 17:20:26
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \basiccss\background\box_shadow.html
-->
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>盒子阴影</title>
    <style>
        body{
            padding: 10px;
        }
        /*
            可以使用box-shadow 对盒子元素进行阴影设置
            参数：
            水平偏移量,垂直偏移量,模糊值,颜色
        */
        div{
            width: 300px;
            height: 300px;
            border: 2px solid #dddddd;
            margin: auto;
            box-shadow: 10px 10px 10px rgba(100, 100,100, 0.5);
        }
    </style>
</head>
<body>
    <div>

    </div>
</body>
</html>